package main

import (
	"log"
	"net"
)

func main() {
	//laddr, _ := net.ResolveTCPAddr("tcp4", "192.168.100.114:391")
	raddr, _ := net.ResolveTCPAddr("tcp4", "aicoder.vip:10000")
	c, err := net.DialTCP("tcp", nil, raddr)
	//c, _ := net.Dial("tcp", "aicoder.vip:10000")
	log.Println(err)
	log.Println("Local:", c.LocalAddr().String(), "Remote:", c.RemoteAddr().String())
	c.Close()
}
